package com.whfc.common.face.szyc;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.List;

/**
 * @author qzexing
 * @version 1.0
 * @date 2022/2/22 11:41
 */
public class DelPersons extends Msg implements Serializable {

    private final String messageId;

    @JSONField(name = "DataBegin")
    private final String dataBegin;

    @JSONField(name = "DataEnd")
    private final String dataEnd;

    @JSONField(name = "PersonNum")
    private Integer personNum;

    private Object info;

    public DelPersons() {
        this.messageId = System.currentTimeMillis() + "";
        this.operator = SzycConst.OP_DEL_PERSONS;
        this.dataBegin = "BeginFlag";
        this.dataEnd = "EndFlag";
    }

    public DelPersons(List<String> customIds) {
        this.messageId = System.currentTimeMillis() + "";
        this.dataBegin = "BeginFlag";
        this.dataEnd = "EndFlag";
        this.operator = SzycConst.OP_DEL_PERSONS;
        this.info = new DelPerson(customIds);
        this.personNum = customIds.size();
    }

    public String getMessageId() {
        return messageId;
    }


    public String getDataBegin() {
        return dataBegin;
    }

    public String getDataEnd() {
        return dataEnd;
    }

    public Integer getPersonNum() {
        return personNum;
    }

    public Object getInfo() {
        return info;
    }

    public void setInfo(DelPerson delPerson) {
        this.info = delPerson;
    }

    @Override
    public String toString() {
        return "AddPersons{" +
                "messageId='" + messageId + '\'' +
                ", dataBegin='" + dataBegin + '\'' +
                ", personNum=" + personNum +
                ", info=" + info +
                "} " + super.toString();
    }

}
